﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace ESupervision.Models
{
    public class MessageRecipient
    {

        
        public int MessageRecipientID { get; set; }

        public int MessageID { get; set; }

        [Required]
        public string ReceiverUserID { get; set; }
        [Required]
        public MessageStatus MessageStatus { get; set; }

        [Required]
        [DataType(DataType.DateTime)]
        [Display(Name = "Time")]
        public DateTime ReceivedTime { get; set; }

       public virtual Message Message { get; set; }

        [ForeignKey("ReceiverUserID")]
        public virtual ApplicationUser ReceiverUser { get; set; }

    }
}